﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using News;
using MinhTuan;
 [System.Web.Script.Services.ScriptService]
public class obj
{
    public string UserName { get; set; }
    public string Password { get; set; }

    public obj()
    { }
}
public partial class temp_Default : System.Web.UI.Page, ICallbackEventHandler
{
    public string Callback;
    public bool kg;
    protected void Page_Load(object sender, EventArgs e)
    {
        Callback = ClientScript.GetCallbackEventReference(this, "arg", "GetValuefromServer", "context", true);

            
    }
    public string GetCallbackResult()
    {
        return Callback;
    }
    public void RaiseCallbackEvent(string eventArgument)
    {
        
        String[] str = eventArgument.Split('|');
        Members mymember= Members.Member_login(str[0],str[1]);
        int id = mymember.Members_Id;
        if (id > 0) Callback = "1";
        else Callback = "0"; ;
    }
}
